package com.fw.ui.view.common.event;

import static org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.fw.ui.view.common.SortingTablePanel;
import com.fw.ui.view.event.AbstractBlurListener;
import com.vaadin.event.FieldEvents.BlurEvent;

@Component
@Scope(SCOPE_PROTOTYPE)
public class SortingTablePanelSortingSelectBlurListener extends AbstractBlurListener {

    private static final long serialVersionUID = 1L;

    @Override
    public boolean validate(BlurEvent event) throws Exception {
	return true;
    }

    @Override
    public void change(BlurEvent event) throws Exception {
	SortingTablePanel sortingTablePanel = (SortingTablePanel) this.getBasedComponent();
	sortingTablePanel.sortingItemChange();
    }

}
